<template>
  <div>
    <el-container class="div_container_left">
      <!-- 左边 -->
      <el-aside :width="this.$store.state.isCollapse ? '64px' : '200px'">
        <el-col>
          <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b"
            :collapse="this.$store.state.isCollapse"
            router
          >
            <el-menu-item index="/user">
              <i class="el-icon-goblet-square-full"></i>
              <span slot="title">首页</span>
            </el-menu-item>
            <el-menu-item index="/page">
              <i class="el-icon-setting"></i>
              <span slot="title">系统首页</span>
            </el-menu-item>
            <el-menu-item index="/from">
              <i class="el-icon-setting"></i>
              <span slot="title">用户列表</span>
            </el-menu-item>
            <el-menu-item index="/tab">
              <i class="el-icon-setting"></i>
              <span slot="title">商品管理</span>
            </el-menu-item>

            <el-menu-item index="/basis">
              <i class="el-icon-notebook-2"></i>
              <span slot="title">品类管理</span>
            </el-menu-item>

            <el-submenu index="56">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>订单</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/relevant_1">订单管理</el-menu-item>
                <el-menu-item index="/relevant_2">选项2</el-menu-item>
              </el-menu-item-group>
            </el-submenu>

            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>图标</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/earch">百度地图</el-menu-item>
                <el-menu-item index="1-2">选项2</el-menu-item>
              </el-menu-item-group>
              <el-submenu index="1-4">
                <template slot="title">二级菜单</template>
                <el-menu-item index="1-4-1">选项1</el-menu-item>
              </el-submenu>
            </el-submenu>

            <el-menu-item index="5">
              <i class="el-icon-data-line"></i>
              <span slot="title">文件上传</span>
            </el-menu-item>

            <el-menu-item index="6">
              <i class="el-icon-picture-outline"></i>
              <span slot="title">自定义图标</span>
            </el-menu-item>

            <el-menu-item index="7">
              <i class="el-icon-picture-outline-round"></i>
              <span slot="title">schart图标</span>
            </el-menu-item>

            <el-menu-item index="8">
              <i class="el-icon-s-promotion"></i>
              <span slot="title">拖拽组件</span>
            </el-menu-item>

            <el-menu-item index="9">
              <i class="el-icon-s-grid"></i>
              <span slot="title">国际化功能</span>
            </el-menu-item>

            <el-menu-item index="10">
              <i class="el-icon-loading"></i>
              <span slot="title">错误处理</span>
            </el-menu-item>
          </el-menu>
        </el-col>
      </el-aside>
      <!-- 右边主体 -->
      <el-main class="primaryColor">
        <div id="div_bottom">
          <!-- 面包屑 -->
          <er class="er" />
        </div>
        <fade>
        <router-view></router-view>
        </fade>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import er from "../components/er";
 import fade from '../components/common/fade/fadeAnimation2'

export default {
  components: {
    er,fade
  },
};
</script>

<style lang="scss">
#div_bottom {
  width: 100%;
  background: lightcyan;
  height: 40px;
  display: flex;
  position: relative;
  .er {
    height: 40px;
    line-height: 20px;
    // padding-top: 15px;
    width: 90%;
    background: lightgoldenrodyellow;
  }
}
.primaryColor {
  height: 800px;
}

.div_container_left {
  width: 100%;
  height: 100%;
  background: #525a62;
}
</style>